//
//  HHSettingInfoCell.m
//  HHBroker
//
//  Created by He Wei on 9/24/15.
//  Copyright © 2015 harry. All rights reserved.
//

#import "HHSettingInfoCell.h"
#import "HHBasicView.h"              //?

@implementation HHSettingInfoCell

- (void)awakeFromNib {
    // Initialization code
}



- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        self.selectedBackgroundView = [HHBasicView tableViewCellSelectionBackgroundView];
    }
    return self;

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (void)setModel:(HHSettingInfoModel *)model
{
    _model = model;
    [self changeLayout];

}

- (void)changeLayout
{
    self.textLabel.text = _model.title;
    self.imageView.image = [UIImage imageNamed:_model.iconName];


}


@end
